package com.sf.webside.dao;

import com.sf.webside.entity.CmsCategoryEntity;
import com.sf.webside.entity.SysUserEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by tanjing on 2019/2/21.
 */
@Repository
public interface CmsCategoryDao extends JpaRepository<CmsCategoryEntity,String>,JpaSpecificationExecutor<CmsCategoryEntity>{
    /**
     * 根据语言查询栏目
     * @return
     */
    List<CmsCategoryEntity> findByLanguageTypeAndDelFlagOrderByUpdateDateDesc(String languageType, String delflag);
    /**
     * 根据id查询栏目
     * @return
     */
    CmsCategoryEntity findByIdAndDelFlag(String id, String delflag);
}
